//
//  ShengJNumCollectionViewCell.m
//  JiuKuGospel
//
//  Created by jiukuyinyue on 15-9-15.
//  Copyright (c) 2015年 JiuKuForApp. All rights reserved.
//

#import "ShengJNumCollectionViewCell.h"

@implementation ShengJNumCollectionViewCell

- (void)setMessageStr:(NSString *)messageStr
{
    [self setupUI:messageStr];
}
- (void)setupUI:(NSString *)messageStr
{
    [self.allView removeFromSuperview];
    self.allView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.width, self.height)];
    [self addSubview:_allView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.width, self.height)];
    _titleLabel.text = messageStr;
    _titleLabel.font = FONT_24;
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.textColor = [UIColor blackColor];
    [_allView addSubview:_titleLabel];
    
    self.bottomLine = [[UIView alloc] initWithFrame:CGRectMake(0, _allView.height-0.5, _allView.width, 0.5)];
    _bottomLine.backgroundColor = JK_HUISE_LINE_COLOR;
    [_allView addSubview:_bottomLine];
    
    self.rightLine = [[UIView alloc] initWithFrame:CGRectMake(_allView.width-0.5, 0, 0.5, _allView.height)];
    _rightLine.backgroundColor = JK_HUISE_LINE_COLOR;
    [_allView addSubview:_rightLine];
}
@end
